	<?php 
			include("../Model/Database.php");
			$DB = new Database();		
	?>
	<div id="sidenav">
		<div id="logo">
			<a href="#"><div id="logo-img"><img src="../Resource/images/logo.png"/></div><span>APP LAND<span></a>
		</div>
		<div id="search">
				<form action="../Controller/search.php" method="GET">
						  <input type="text" name="search_for" value=""> 
						  <a href="#" onClick='this.form.submit()'><img src="../Resource/images/search.png"/></a>
						 
			   </form>
		</div>
		<div id="sidebar" style="overflow-y:scroll;">
			    	<ul id="menu">
			    	
			    		<li>
							<a class="nav" href="androidplatform.php">Home</a>
						</li>
						
						<li>
							<a class="nav" href="#"><img src="../Resource/images/icon/caibua.png"/><span>Ứng Dụng</span></a>
							<ul>
									<?php 
											$result = $DB->getListCategoriesForApps();
											while($row = mysql_fetch_array($result)){
									?>
											<li><a href="loadproductwithcate.php?cate=<?php echo $row['MA_DANH_MUC'];?>"> <?php echo $row['TEN_DANH_MUC']; ?></a></li>	
									<?php 
											}
									?>
							</ul>
						</li>
						<li>
							<a class="nav" href="#"><img src="../Resource/images/icon/game.png"/><span>Game</span></a>
							<ul>
									<?php 
											$result = $DB->getListCategoriesForGame();
											while($row = mysql_fetch_array($result)){
									?>
											<li><a href="loadproductwithcate.php?cate=<?php echo $row['MA_DANH_MUC'];?>"> <?php echo $row['TEN_DANH_MUC']; ?></a></li>	
									<?php 
											}
									?>
							</ul>
						</li>
						<li><a class="nav" href="#"><img src="../Resource/images/icon/healthcare.png"/><span>Trợ Giúp</span></a></li>
						<li>
							<a class="nav" href="#"><img src="../Resource/images/icon/book.png"/><span>Phản Hồi</span></a>
							
						</li>
						<li>
							<a class="nav" href="#"><img src="../Resource/images/icon/business.png"/><span>Liên Hệ</span></a>
							<ul>
								<li><a href="#">Yahoo!</a></li>
								<li><a href="#">Google</a></li>
								<li><a href="#">Ask.com</a></li>
								<li><a href="#">Live Search</a></li>
							</ul>
						</li>
					</ul>
		</div>
    </div>
